﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebSlices
{
    /// <summary>
    /// Defines the properties used by web slices.
    /// </summary>
    public interface IWebSlice
    {
        /// <summary>
        /// Gets or sets the title of the web slice.
        /// </summary>
        string Title { get; set; }
        /// <summary>
        /// Gets or sets the client ID of the web slice.
        /// </summary>
        string Id { get; set; }
        /// <summary>
        /// Gets or sets the amount of time that a client should cache the web slice data.
        /// </summary>
        TimeSpan? TimeToLive { get; set; }
        /// <summary>
        /// Gets or sets the date and time when the web slice will expire.
        /// </summary>
        DateTime? EndTime { get; set; }
        /// <summary>
        /// Gets the collection of web slice content controls.
        /// </summary>
        ControlCollection Content { get; }
    }
}